<%@page import="modulo1.util.UAgentInfo"%>
<%
    // http://www.hand-interactive.com/m/resources/detect-mobile-java.htm
    String userAgent = request.getHeader("User-Agent");
    String httpAccept = request.getHeader("Accept");

    UAgentInfo detector = new UAgentInfo(userAgent, httpAccept);

    if (detector.detectMobileQuick()) {
        response.sendRedirect("Mobile");
    }
    String raiz = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();

%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="<%=raiz%>/css/admin-template/all.css" />        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sistema Academico</title>
    </head>
    <body>
        <%
            String msg = (String)request.getAttribute("mensagem");
            if(msg != null){
                out.print("<script>alert('"+msg+"');</script>");
    }
%>
        <div id="main">
            <div class="header"></div>
            <div id="middle">

                <div id="left-column"></div>
                <div id="center-column">
                    <form action="Login" method="post">
                        <h1>Bem Vindo ao Sistema Acadêmico</h1>
                        <br />
                        <h2>Faça seu login para ter acesso ao sistema:</h2>
                        <h3>CPF: </h3> <input type="text" name="cpf" />
                        <h3>Senha:   </h3> <input type="text" name="senha" />
                        <input type="submit" value="Enviar" />    
                    </form>
                </div>
            </div>

            <div id="footer"></div>
        </div>

    </body>
</html>